//
//  WJPrigressView.m
//  WJBSApp
//
//  Created by dllo on 16/7/22.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJPrigressView.h"

@implementation WJPrigressView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.roundedCorners = 2;
        self.progressLabel.textColor = BSWhiteColor;
    }
    return self;
}
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated {
    [super setProgress:progress animated:animated];
    NSString *text = [NSString stringWithFormat:@"%.0f%%",progress * 100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}

@end
